# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   智慧医保

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.medical_insurance_page import MedicalInsurancePage


class MedicalInsuranceCase(UIParent):

    @classmethod
    def test_medical_insurance_check(cls):
        '''智慧医保校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("智慧医保")
        authorizePage.ifAuthorize()

        status = MedicalInsurancePage.medical_insurance_index()
        asserts.true(status, "智慧医保校验")
